package com.lkl.springcloud;

import com.lkl.myRule.LklRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

// Ribbon和Eureka整合之后，客户端可以直接调用，不用关系IP地址 Ribbon默认轮询算法
@SpringBootApplication
@EnableEurekaClient //开启Eureka 客户端
//微服务启动时，开启负载均衡,并指定自定义的规则（自定义规则会覆盖默认的规则）
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT",configuration = LklRule.class)
public class DeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class,args);
    }
}
